/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package team;

import team.Team;
import team.BasketballTeam;
import team.HockeyTeam;
import team.FootballTeam;

/**
 *
 * @author denaas
 */
public class TeamFabric {
    public static Team getInstance(int sport) {
        switch(sport) {
       case 1:
            return new FootballTeam();
       case 2:
            return new BasketballTeam();
       case 3:
            return new HockeyTeam();
       default:
           return null;
        }
    }
}
